﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
using IntelligentDecisioning.SharePoint.Controls;

namespace IntelligentDecisioning.SharePoint.Actions
{
    /// <summary>
    /// Base class for "Provisioning action".
    /// 
    /// A provisioning action is something that we want to do on first load
    /// of a site collection, site or page. Examples are adding a set of list views
    /// to a page etc.
    /// </summary>
    public abstract class ActionBase
    {
        public bool RunOnce { get; set; }

        public abstract void Provision(IDProvisioningControlBase context);

        public ActionBase()
        {
            RunOnce = true;
        }
    }
}
